<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看所有书籍</title>
    <style>
        tr{
            height: 30px;
        }
        th,td{
            width: 150px;
            text-align: center;
        }
    </style>
</head>
<body>
    <table border="1">
        <tr>
            <th>id</th>
            <th>title</th>
            <th>pub</th>
            <th>price</th>
            <th>market_price</th>
            <th>op</th>
        </tr>
        {% for book in books %}
        	 <tr>
                <td>{{ book.id }}</td>
                <td>{{ book.title }}</td>
                <td>{{ book.pub }}</td>
                <td>{{ book.price }}</td>
                <td>{{ book.market_price }}</td>
                 <td><a href="/book/update_book/{{ book.id }}">更新</a>
                     | <a href="/book/delete_book?book_id={{ book.id }}">删除</a></td>
            </tr>
        {% endfor %}


    </table>
</body>
</html>